package shejimoshi.chouxianggongchangmoshi;

public class client {
    // 客户端代码
    public static void main(String[] args) {
        //FurnitureFactory factory = new ModernFurnitureFactory();
        FurnitureFactory factory = new ClassicFurnitureFactory();
        Chair chair = factory.createChair();
        chair.design();
        Table table = factory.createTable();
        table.design();
    }
}
